<template>
  <div class="right-out">
    <div class="nav">我的资料</div>
    <div class="content">
      <div class="avater">
        <img
          src="https://img2.baidu.com/it/u=1309682942,3174268086&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec=1668963600&t=14f37bc74b0cfe8dc9ced8b4a9702556"
        />
      </div>
      <p class="change">点击更换</p>

      <el-form>
        <el-row>
          <el-col :span="12">
            <el-form-item label="用户名：">
              <el-input placeholder="1537706_mUCv" style="width: 150px" />
            </el-form-item>
          </el-col>
          <el-col :span="12"
            ><el-form-item label="生日：" style="margin-left: 28px">
              <el-config-provider :locale="local">
                <el-date-picker
                  v-model="sizeForm.birthDate"
                  type="date"
                  label="Pick a date"
                  placeholder="Pick a date"
                  style="width: 100%"
                />
              </el-config-provider>
            </el-form-item>
          </el-col>
        </el-row>

        <el-row>
          <el-col :span="12">
            <el-form-item label="性别：">
              <el-radio-group>
                <el-radio-button
                  class="nan"
                  label="男"
                  style="margin-left: 15px"
                ></el-radio-button>
                <el-radio-button label="女"></el-radio-button>
              </el-radio-group>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="城市：" style="margin-left: 28px">
              <el-select placeholder="">
                <el-option> </el-option>
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="成长等级：">
              <div class="vipLevel">Lv.<span>100</span></div>
            </el-form-item></el-col
          >
          <el-col :span="12">
            <el-form-item label="技能水平：">
              <el-select class="selected">
                <el-option> </el-option>
              </el-select>
              <el-icon><WarningFilled /></el-icon>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="兴趣技能：">
              <div>
                <div class="tagList">
                  <span class="text"></span>
                </div>
                <span class="delt">x</span>
              </div>
              <div class="changeHobby">请选择</div>
            </el-form-item>
          </el-col>
        </el-row>
      </el-form>
      <div class="but">保存</div>
    </div>
  </div>
</template>

<script lang="ts">
import { defineComponent } from "vue";

export default defineComponent({
  name: "information",
});
</script>

<script setup lang="ts">
import { ref, reactive } from "vue";
import zhCn from "element-plus/lib/locale/lang/zh-cn";

let local = zhCn;

const sizeForm = reactive({
  birthDate: "",
});
</script>
<style scoped lang="scss">
.right-out {
  .nav {
    width: 1020px;
    background-color: white;
    border-radius: 3px;
    font-size: 14px;
    box-sizing: border-box;
    margin-bottom: 10px;
    text-align: left;
    padding: 30px 28px;
  }
  .content {
    width: 1020px;
    background-color: white;
    border-radius: 3px;
    box-sizing: border-box;
    padding: 30px;
    background-repeat: no-repeat;
    .avater {
      width: 120px;
      height: 120px;
      border-radius: 100%;
      background-position: 50%;
      margin: 26px auto 0;
      cursor: pointer;
      &:hover {
        box-shadow: 0 0 5px 1px #f93684;
      }
      img {
        width: 120px;
        height: 120px;
        border-radius: 50%;
      }
    }
    p {
      color: #7d8090;
      font-size: 14px;
      text-align: center;
      padding: 7px;
      margin: auto;
    }
    .change {
      text-align: center;
      padding: 12px;
      font-size: 14px;
      color: #7d8090;
    }
    .el-form {
      padding: 30px 100px;

      .el-form-item {
        .el-col-12 {
          width: 50%;
          float: left;
          box-sizing: border-box;
        }

        .vipLevel {
          width: 40px;
          height: 20px;
          background-color: #ff36b7;
          // margin: 5px auto;
          border-radius: 3px;
          font-size: 10px;
          color: white;
          font-weight: 600;
          font-style: oblique;
          text-align: center;
          line-height: 20px;
        }
      }
      .el-form-item:nth-child(6) {
        .selected {
          margin-right: 8px;
        }
      }
      .el-form-item:nth-child(7) {
        .list {
          position: relative;
          margin: 0 15px 5px 0;
          .tagList {
            width: 100px;
            height: 40px;
            border: 1px solid #eaecf0;
            text-align: center;
            line-height: 40px;
            border-radius: 3px;
            .text {
              font-size: 16px;
            }
          }
          .delt {
            width: 20px;
            height: 20px;
            background-color: #fe4419;
            color: white;
            border-radius: 50%;
            text-align: center;
            line-height: 20px;
            position: absolute;
            left: 90px;
            top: -8px;
          }
        }
        .changeHobby {
          width: 100px;
          height: 30px;
          background-color: #f5f7f9;
          color: #bbbfc9;
          border-radius: 3px;
          text-align: center;
          cursor: pointer;
        }
      }
    }
    .but {
      width: 140px;
      height: 46px;
      background-color: #f93684;
      color: white;
      font-size: 12px;
      margin: auto;
      text-align: center;
      line-height: 46px;
      border-radius: 3px;
    }
  }
}
</style>
